<?php
class Mwc_SystemPoint_Block_Userpoint_Edit extends Mage_Adminhtml_Block_Widget_Form_Container{
    public function __construct(){
        parent::__construct();
 
        $this->_blockGroup = 'systempoint';
        $this->_mode = 'edit';
        $this->_controller = 'userpoint';

        if( $this->getRequest()->getParam($this->_objectId) ) {
            $userpoint = Mage::getModel('systempoint/userpoint')
                ->load($this->getRequest()->getParam($this->_objectId));
            Mage::register('frozen_userpoint', $userpoint);
        }
    }
 
    public function getHeaderText(){
        return Mage::helper('systempoint')->__('Edit User Point');
        //return Mage::helper('systempoint')->__("Edit User Point '%s'", $this->htmlEscape(Mage::registry('frozen_userpoint')->getId()));
    }
}